﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using CCF20Model;

namespace CCF20Module
{
    /// <summary>
    /// Interaction logic for UserResetPasswordDialogWindow.xaml
    /// </summary>
    public partial class UserResetPasswordDialogWindow : Window
    {
        public UserResetPasswordDialogWindow()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, RoutedEventArgs e)
        {
            if ((this.oldPassword.Text != null) && (this.oldPassword.Text.Length>0))
            {
                this.DialogResult = true;
            }
            else
            {
                Utility.ShowMessageBox("请输入旧的密码");
                this.DialogResult = false;
                
            }
        }

        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}
